# 1.算术运算符

# # + - * /    简单的四则运算

# num1 = 4.0
# num2 = 2
# # 加法运算
# res1 = num1 + num2
# print("num1 + num2 = ",res1)

# # 减法运算
# res2 = num1 - num2
# print("num1 - num2 = ",res2)

# # 乘法运算
# res3 = num1 * num2
# print("num2 * num1 = ",res3)

# 除法运算   需要注意\ /   !!!特别的  如果 两个整数相除结果是浮点数
# res4 = 1 / 2
# print("num2 / num1 = ",res4)

# // % **

# // 整数除法
# 例如 5/2 = 2.5；整数除法下 5//2 = 2
num1 = 7
num2 = 4
res = num1 // num2
print("num1 // num2 = ",res)
# %  取余数运算   5%2 = 1  7%4 = 3
res = num1 % num2
print("num1 % num2 = ",res)

# ** 乘方运算
# 5**2 = 25
# 2**5 = 32
num1 = 5
num2 = 2
# res = num1**num2
res = num2**num1
print("num2 ** num1 = ",res)
# 2**(1/2)=二次根号下2
print(5**0.5)
print(5**(1/3))

y = ((1+2**8)/(7*3**2))*((2**4 - 5**2)/(9/2))
print("y = ",y)